#!/bin/bash
mkdir -p ../Android/
INSTALL_DIR=`readlink -f ../Android/`
mkdir -p ${INSTALL_DIR}
mkdir -p Android
cd Android
PATH=$PATH:$2/bin $1/configure --target=arm-linux-androideabi --host=arm-linux-androideabi --enable-jit --with-default-sysroot=$2 --enable-debug-runtime --enable-debug-symbols --enable-optimized=no --enable-targets=arm --prefix=${INSTALL_DIR}
PATH=$PATH:$2/bin make -j16 
make install
cd ..
